package com.ypc.webdemo.dao.mapper;

import com.ypc.webdemo.dao.entity.Plugin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yinpengcheng
 * @Date 2023/7/21
 */
@Repository
public interface PluginMapper extends JpaRepository<Plugin, String> {
    Page<Plugin> findByNameAndStatus(String name, String status, Pageable pageable);

    List<Plugin> findByStatusIn(List<String> statusList);
}
